import Vue from 'vue'
import Router from 'vue-router'
import home from '@/views/home'
import login from '@/views/login'
import preview from '@/views/preview'
import video from '@/views/video'
import weddingList from '@/views/weddingList'


import AboutContent from "../components/navBar/aboutContent"
import SiteContent from "../components/navBar/siteContent"
import HouseContent from "../components/navBar/houseContent"
import WeddingContent from "../components/navBar/weddingContent"
import CarContent from "../components/navBar/carContent"
import SelectContent from "../components/navBar/selectContent"



Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    { path: '/', component: home },
    { path: '/login', component: login },
    { path: '/about', component: AboutContent },
    { path: '/site', component: SiteContent },
    { path: '/house', component: HouseContent },
    { path: '/wedding', component: WeddingContent },
    { path: '/weddingList', component: weddingList },
    { path: '/car', component: CarContent },
    { path: '/select', component: SelectContent },
    { path: '/preview', component: preview },
    { path: '/video', component: video },
    { name: 'default', path: '*', redirect: { name: 'login' } }
  ]
})
